import java.util.Random;
import java.util.Scanner;

public class Hipo
{
	public static void main (String[] args)
	{
	       //	String  another = "y" ;
		Random in = new Random();
		Scanner scan = new Scanner (System.in);
		int num1,num2,num3=1,num4=0,num5 = 1;
		num1 = in.nextInt(100) + 1;
		while (num4 != num5)
		{
		    // another = out.nextLine();
		     System.out.print ("Your count :");
		     num2 = scan.nextInt();
		     if (num2 == num1)
		     {  System.out.println ("you win the game");
				     
				     System.out.println (num3 + "times");
				     
		    // System.out.print ("once again (y/n)?");
		    // another = out.nextLine();
		     }       
		     else 
		     { 
			     System.out.println ("It's wrong");
				     if (num2 < num1)
					     System.out.println ("your number < right number");
				     else
					     System.out.println ("your number > right number");
		     
		    // System.out.print ("once again (y/n)?");
		    // another = out.nextLine();
		     }
		     num3 = num3 + 1;
		    System.out.print ("once again (y=0/n=1)?");
		    num4 = scan.nextInt();
		   
			    
		}
	}
}
		     

		     



